<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_db_conn = "localhost";
$database_db_conn = "Consultora";
$username_db_conn = "Consultor";
$password_db_conn = "*1consultor";
$db_conn = mysql_pconnect($hostname_db_conn, $username_db_conn, $password_db_conn) or trigger_error(mysql_error(),E_USER_ERROR);

function conecta(){
	$db_conn = mysql_connect($hostname_db_conn, $username_db_conn, $password_db_conn);
	mysql_select_db("Consultora", $db_conn);
	return $db_conn;
}

function close($bdLink, $result){
	mysql_free_result($result);
	mysql_close($bdLink);	
}
?>